home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / extrude.6 < prev    next >
Text File  |  1996-07-16  |  1KB  |  41 lines

  1. .TH EXTRUDE
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. EXTRUDE
  5.  
  6.  
  7.  
  8.  PolygonType EXTRUDE( PolygonType Object, VectorType Dir )
  9.  
  10.  or
  11.  
  12.  SurfaceType EXTRUDE( CurveType Object, VectorType Dir )
  13.  
  14. Creates an extrusion of the given Object. If Object is a
  15. PolygonObject, its first polygon is used as the base for the extrusion in
  16. Dir direction, and a closed PolygonObject is constructed. If Object
  17. is a CurveType, an extrusion surface is constructed instead, which is not
  18. a closed object (the two bases of the extrusion are excluded, and the curve
  19. may be open by itself).
  20.  
  21. Direction Dir cannot be coplanar with the polygon plane. The curve
  22. may be nonplanar.
  23.  
  24. Example:
  25.  
  26.     Cross = cbspline( 3,
  27.                       list( ctlpt( E2, -0.018, 0.001 ),
  28.                             ctlpt( E2,  0.018, 0.001 ),
  29.                             ctlpt( E2,  0.019, 0.002 ),
  30.                             ctlpt( E2,  0.018, 0.004 ),
  31.                             ctlpt( E2, -0.018, 0.004 ),
  32.                             ctlpt( E2, -0.019, 0.001 ) ),
  33.                       list( KV_OPEN ) );
  34.     Cross = Cross + -Cross * scale( vector( 1, -1, 1 ) );
  35.     Napkin = EXTRUDE( Cross * scale( vector( 1.6, 1.6, 1.6 ) ),
  36.                       vector( 0.02, 0.03, 0.2 ) );
  37.  
  38. constructs a closed cross section Cross by duplicating one half of
  39. it in reverse and merging the two sub-curves. Cross is then used as
  40. the cross-section for the extrusion operation.
  41.